Can a typescript function output 2 different data types

welcome to shbcf.ru